Skip to content

Attempted to remove double spacing in the install commands#188

Open
DandelionSprout wants to merge 1 commit intoSplashtopInc:masterfrom
DandelionSprout:patch-2
Open

Attempted to remove double spacing in the install commands#188
DandelionSprout wants to merge 1 commit intoSplashtopInc:masterfrom
DandelionSprout:patch-2

Conversation

@DandelionSprout
Copy link
Contributor

For reasons I can't decisively figure out, there's a double spacing before -e in the commands that are copied on the packages' Winstall pages, so that for instance copying from https://winstall.app/apps/Rakk.TalanAir results in winget install --id=Rakk.TalanAir -e when having been pasted into PowerShell 7.5.2.

So I presumed that this could be a way to fix it.

const [showingCheck, setShowingCheck] = useState(false);

let str = `winget install --id=${id} ${version == latestVersion ? "" : `-v "${version}"`} -e`;
let str = `winget install --id=${id} ${version == latestVersion ? "" : `-v "${version}"`}-e`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. This works when version == latestVersion but I think it will miss the space otherwise.

Copy link
Contributor Author

@DandelionSprout DandelionSprout Sep 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably. I admit I made a bit of a guess on this; the text syntaxing process in SingleApp.js was pretty complicated to figure out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants